<include file="Public:header" />

<div class="alert alert-info">
    菜式原材料管理
</div>
<a class="btn btn-primary add" href="__URL__/add">添加</a>
<table class="table table-striped">
    <tr>
        <th>材料名称</th>
        <th>材料种类</th>
        <th>材料单位</th>
        <th>材料单价</th>
        <th>添加者</th>
        <th>添加时间</th>
        <th>操作</th>
    </tr>
    <volist name="data" id="val">
        <tr>
            <td>{$val.stuff_name}</td>
            <td>{$val.stuff_type}</td>
            <td>{$val.stuff_unit}</td>
            <td>{$val.stuff_price}</td>
            <td>{$val.add_user}</td>
            <td>{$val.add_time}</td>
            <td><a href="__URL__/update/id/{$val.id}" class="btn"><i class="icon-edit"></i></a>
                &nbsp;&nbsp;<a data="{$val.id}" href="__URL__/delete" class="btn" onclick="return ajax_delete(this);"><i class="icon-remove"></i></a></td>
        </tr>
    </volist>
</table>
<div class="pagination">
    {$page}
</div>

<include file="Public:check"/>

</body>
</html>